<?php
echo '<strong>Welcome to xiaotao\'WX!</strong><br>';

$dbhost = 'qdm168259546.my3w.com';
$dbdatabase = 'qdm168259546_db';
$username = 'qdm168259546';
$userpass = 'ztq8301016';
$dsn='mysql:host='.$dbhost.';dbname='.$dbdatabase.';';
$dbh=new PDO($dsn,$username,$userpass);

if (!$dbh)
{
	die('Could not connect: ' . mysql_error());
	echo 'wrong';
}

$stmt=$dbh->query("select sum(list_money) from list where list_status = 1 "); //查询总积分
$row=$stmt->fetch();
print_r($row[0]);

